<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>用户注册</title>
    <meta charset="UTF-8">
	<link rel="stylesheet" type="text/css" href="css/login.css"/>
	<link rel="stylesheet" type="text/css" href="css/userLogon.css"/>
	<script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.min.js"></script>
	<script type="text/javascript" src="js/getBodyWidAndHei.js" ></script>
	<script type="text/javascript" src="js/register.js" ></script>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  	<!--注册大框-->
	<div class="start">
		<div class="infor">
			<div class="countryText">
				<%
			  		request.setCharacterEncoding("UTF-8");
			  		String team = (String)request.getSession().getAttribute("team");
			   		out.println("<img src=\"img/login/" + team + ".png\"/>");
			  	%>
			</div>
			
			<form action="servlet/registerServlet" method="post">
				
				<!--用户名-->
				<div class="telInput">
					<p class="headline">用户名：</p><input type="text" id="hid" name="hid">
				</div>
				<!--昵称-->
				<div class="emailInput">
					<p class="headline">昵称:</p><input type="text" id="hname" name="hname">
                </div>
				<!--密码-->
				<div class="passInput">
					<p class="headline">密码：</p><input type="password" id="pwd" name="pwd">
				</div>
				<!--确认密码-->
				<div class="passAgainInput">
					<p class="headline">确定密码:</p><input type="password" id="pwd2" name="pwd2">
				</div>
				<!--提交-->
				<div class="sub">
					<input type="submit" id="signIn" value="注册" />
				</div>
		    </form>
		    <div class="change">
		    	<a href="index.jsp">返回首页</a>
		    </div>
	    </div>
	</div>
	<!--背景-->
	<div class="myInput">
			<!--index内放从数据库中传入的文本的东西-->
			<p id="myInputP">
				<%
			  		String er = (String)request.getAttribute("error");
			  		if(er != null) out.println(er);
			  	%>
			</p>
		</div>
	<div class="wei">
		<a href="https://home.firefoxchina.cn/?from=extra_start"><img id="caoCao" src="img/index/曹操.jpg"></a>
	</div>
	<div class="shu">
		
		<a href="https://home.firefoxchina.cn/?from=extra_start"><img id="liuBie" src="img/index/刘备.jpg"></a>
	</div>
	<div class="wu">
		<a href="https://home.firefoxchina.cn/?from=extra_start"><img id="sunQuan" src="img/index/孙权.jpg"></a>
	</div>
  </body>
</html>
